package com.taobao.txc.common.util.c;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.lang.StringUtils;

public class b
{
  private static c a;
  private static boolean b = false;
  private static boolean c = false;
  private static boolean d = true;
  private static Set<String> e = Collections.synchronizedSet(new HashSet());
  private static volatile long f = 0L;
  
  public static boolean a()
  {
    return d;
  }
  
  static
  {
    String str1 = System.getProperty("tddl.config.mode", "auto");
    a = c.a(str1);
    if (a == null) {
      a = c.d;
    }
    String str2 = System.getProperty("sun.java.command");
    if (StringUtils.equals(str2, "com.taobao.tddl.server.TddlLauncher")) {
      b = true;
    }
    String str3 = System.getProperty("appName");
    if ((StringUtils.isNotEmpty(str3)) && (str3.startsWith("tddl"))) {
      b = true;
    }
    if (b)
    {
      String str4 = System.getProperty("drds");
      if ((StringUtils.isNotEmpty(str4)) && (BooleanUtils.toBoolean(str4))) {
        c = true;
      }
    }
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.common.util.c.b
 * JD-Core Version:    0.7.0.1
 */